package com.sunny.shop.repository;

import com.sunny.shop.model.Story;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StoryRepository extends JpaRepository<Story,Long> {

    Page<Story> findAllByCateId(Long cateId, Pageable pageable);

    Story findAllById(Long id);
}
